package com.sxyc.config.routes;

import com.jfinal.config.Routes;
import com.sxyc.weixin.controller.AddressController;
import com.sxyc.weixin.controller.BehaviourController;
import com.sxyc.weixin.controller.DDangController;
import com.sxyc.weixin.controller.DestinationController;
import com.sxyc.weixin.controller.EnjoyController;
import com.sxyc.weixin.controller.IndexController;
import com.sxyc.weixin.controller.JuheController;
import com.sxyc.weixin.controller.M2mController;
import com.sxyc.weixin.controller.OAuth2;
import com.sxyc.weixin.controller.PersonController;
import com.sxyc.weixin.controller.TemplateController;
import com.sxyc.weixin.controller.TracksController;
import com.sxyc.weixin.controller.WeixinGetPhoneController;
import com.sxyc.weixin.controller.WeixinMsgController;
import com.sxyc.weixin.controller.WeixinPayController;
import com.sxyc.weixin.controller.WeixinUnBindController;
import com.sxyc.weixin.controller.WeixinfindCarController;

/**
 * 微信路由配置
 * @author WangQian
 *
 */
public class WeiXinRoutes extends Routes {
	@Override
	public void config() {
		add("/", IndexController.class);
		add("/m2m", M2mController.class);
		add("/msg", WeixinMsgController.class);
		add("/pay", WeixinPayController.class,"/wx/jsp");
		add("/getWXPhone", WeixinGetPhoneController.class,"/wx/jsp");
		add("/UnBind", WeixinUnBindController.class,"/wx/jsp");
		add("/destination", DestinationController.class,"/wx/jsp");
		add("/person", PersonController.class,"/wx/jsp");
		add("/address", AddressController.class,"/wx/jsp");
		add("/share", EnjoyController.class,"/wx/jsp");
		add("/track", TracksController.class,"/wx/jsp");
		add("/findcar", WeixinfindCarController.class,"/wx/jsp");
		add("/template", TemplateController.class,"/wx/jsp");
		add("/juhe", JuheController.class,"/wx/jsp");
		add("/OAuth2", OAuth2.class,"/wx/jsp");
		add("/behaviour", BehaviourController.class,"/wx/jsp");
		add("/ddang", DDangController.class,"/wx/jsp");
	}
}
